<template>
  <div id="app">
    <!-- <nav> -->
      <!-- <router-link to="/">Home</router-link> |
      <router-link to="/about" tag="div" style="display:inline-block" active-class="abc">About</router-link>|
      <router-link to="/tielu">铁路12306</router-link>|
      <router-link to="/gouzi">生命周期钩子</router-link>|
      <router-link to="/lyb">留言板</router-link> | 
      <router-link to="/flexye">flex页面</router-link>|
      <router-link to="/gou3-20">钩子week</router-link>|
      <router-link to="/login">二级导肮</router-link>| -->

    <!-- </nav> -->
       <!-- 路由匹配到的组件将显示在这里 -->
    <router-view/>
  </div>
</template>
<script>
// 入口文件追加路由
  export default{
    // created(){
    //   var arr=[
    //     {
    //     path: '/home/echarts2',
    //     name: 'echarts2',
    //     component: () => import(/* webpackChunkName: "about" */ '../views/echarts/Tab2View.vue'),
    //   },
    //   ]
    //   this.$router.addRouter(arr)
    // },
    
  }
</script>

<style lang="less" scoped>
.abc{
  color:blue;
  font-weight: bold;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
